<?php
/**
 * Created by PhpStorm.
 * User: iraklis
 * Date: 12/6/13
 * Time: 12:13 AM
 */
session_start();
if (!isset($_SESSION["level"])) header("location:login.php");
?>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="./files/img/favicon.ico">
    <title>RemindMe</title>

    <link type="text/css" href="./files/jquery-ui/css/smoothness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />
    <link rel='stylesheet' type='text/css' href='./files/fullcalendar-1.6.4/fullcalendar/fullcalendar.css' />
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script type='text/javascript' src='./files/fullcalendar-1.6.4/fullcalendar/fullcalendar.js'></script>

    <style type="text/css">
        @import "style2.css";
    </style>

    <script type="text/javascript" src="./scripts.js"></script>
</head>



<?php
include 'sql.php';
?>

<body>

<div id="access">
    <?php echo showRightPanel(); ?>
</div> <!--End of access-->

<!--
Start Header Area
-->
<div id="header">
 <?php showMenu(); ?>
</div><!-- End of HEADER -->


<!--
 Start Left Panel Area
 -->
<?php showLeftPanel($_SESSION['level'], $_SESSION['user']); ?>
<!--
End of Left_panel
-->

<!--
 Start Container Area
 -->

<div id="container">
    <div id="content"><!-- Content Area-->
    </div><!--END of content-->
</div><!--END of container-->

<?php showFooter(); ?><!--END of footer-->
</body>
<script>
$(document).ready(function() {

// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
    weekends:false
// put your options and callbacks here
})
});
</script>
</html>